package appceshi.service.impl;

import appceshi.dao.UserDao;
import appceshi.dao.impl.UserDaoImpl;
import appceshi.model.User;

public class UserServiceImpl implements appceshi.service.UserService {
	private UserDao userDao = new UserDaoImpl();

	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	public boolean login(String username, String password) {
		if (username.equals("hello") && password.equals("world"))
			return true;
		return false;
	}

	@Override
	public boolean register(User user) {
		// TODO Auto-generated method stub
		return true;
	}

}
